//
//  const.swift
//  letuofu
//
//  Created by WH-JS on 2019/11/7.
//  Copyright © 2019 WH-JS. All rights reserved.
//

import Foundation
// 屏幕的宽
let REAL_SCREEN_WIDTH = UIScreen.main.bounds.size.width

// 屏幕的高
let REAL_SCREEN_HEIGHT = UIScreen.main.bounds.size.height

//状态栏高度
let STATUSBAR_HEIGHT = UIApplication.shared.statusBarFrame.height

//导航栏高度:通用
let NAVIGATIONBAR_HEIGHT = UINavigationController().navigationBar.frame.size.height

//判断是否iphoneX
let iphoneX_EdgeInsetsPatch_ = BaseViewController.safeEdgeInsets!.top - 20
let W_IPHONEX = UIApplication.shared.statusBarFrame.height == 44
let W_NAVBARHEIGHT = W_IPHONEX ? Double(88.0) : Double(64.0)
let W_TABBARHEIGHT = W_IPHONEX ? Double(49.0+34.0) : Double(49.0)
let W_STATUSBARHEIGHT = W_IPHONEX ? Double(44.0) : Double(20.0)

//文件目录
let APP_DOCUMENTSPATH = NSHomeDirectory() + "/Documents"
let APP_LIBRARYPATH = NSHomeDirectory() + "/Library"
let APP_CACHESPATH = NSHomeDirectory() + "/Library/Caches"
let APP_TMPPATH = NSHomeDirectory() + "/tmp"

//易盾key
let CAPTCHA_ID = "f39bb8dd4d3b42759d6366640f4b6824"

//通用常量key

let REMEMBER_PASSWORD = "L_REMEMBER_PASSWORD"
let LOGIN_PASSWORD = "L_LOGIN_PASSWORD"
let LOGIN_ID = "L_LOGIN_ID"
let LOGIN_ST = "L_LOGIN_ST"
let USER_IDENTITYTOKEN = "identityToken" //用户验票后的token
let USER_GUID = "user_guid" //用户验票后的token
let USER_TOKENTIMEOUT = "identityToken_tokenTimeOut" //用户token过期
let DEFULT_MALL = "defulemall" //当前的商城
let USER_DEFULT_MALL = "userdefulemall" //用户当前的默认商城
let MALL_CHANGE = "mallchange"
let PAY_SUCCEED = "paysucceed"
let CAR_CHANGE = "carchange"
let GOTOHONME = "gotohome"
let USER_INFO = "userinfo"
let FINANCIAL_ACCUNT = "FinancialAccount"
let ISINREVIEW = "isInReview"
let NewVersionString = "NewVersionString"
//标识KEY
let ZoneCodeTime = "ZoneCodeTime"//获取上次更新时间
let ZoneCode100 = "100"  //订单类型
let ZoneCode101 = "101"  //第三方订单
let ZoneCode103 = "103"  //配送方式
let ZoneCode104 = "104"  //订单状态
let ZoneCode105 = "105"  //专区标识
let ZoneCode106 = "106"  //分页排序方向
let ZoneCode107 = "107"  //分页排序方式标识
let ZoneCode108 = "108"  //积分流水历史记录流水类型
let ZoneCode109 = "109"  //商品库存状态
let ZoneCode110 = "110"  //短信用途
let ZoneCode111 = "111"  //检查短信验证码及验证凭证时自身用途
let ZoneCode116 = "116"  //用户信息性别
let ZoneCode117 = "117"  //商品分页排序标识
let ZoneCode118 = "118"  //积分流水历史记录分页排序标识
let ZoneCode119 = "119"  //分页获取自提地址排序标识

let SEND_SMS = "sendSms"

let YINDAO_KEY = "yindaokey" //是否打引导页KEY
let YINSI_KEY = "yinsikey"  //是否打开隐私政策KEY

let QIDIAN_KEY = "qidiankey"  //企点客服KEY

import CocoaLumberjack

class Constant {
        private static let LoggingLevel_KEY = "LoggingLevel"
        ///是否直接用pring打印日志（用日志系统打印会打很长的时间戳)
        static let LoggingInConsoleMode = true
        ///日志级别，较低级别的日志会被忽略
        static var LoggingLevel : DDLogLevel =
            .debug
        static var fileLogger : DDFileLogger? = nil
}

//测试环境：http://121.8.143.167:8081/leTuo_H5
//生产环境：:https://cw.51camel.com/appweb
///h5页面
let INDEX_URL = "https://cw.51camel.com/appweb/home.html?id="
let ARTICLE_URL = "https://cw.51camel.com/appweb/article.html?id="
let SPLICE_URL = "https://cw.51camel.com/appweb/splice.html?id="
